package com.thread.exception.demo2;

public class MyUncaughtExceptionHandler implements
		Thread.UncaughtExceptionHandler {

	// Thread.UncaughtExceptionHandler.uncaughtException()会在线程因未捕获的异常而临近死亡时被调用
	@Override
	public void uncaughtException(Thread t, Throwable e) {
		System.out.println("捕获到异常：" + e);
	}

}
